#include "Cube.h"

void Cube::setA(int a){
        m_a = a;
}
int Cube::getA(){
        return m_a;
}

void Cube::setB(int b){
        m_b = b;
}
int Cube::getB(){
        return m_b;
}

void Cube::setC(int c){
        m_c = c;
}
int Cube::getC(){
        return m_c;
}

void Cube::setABC(int a, int b ,int c){
        m_a = a;
        m_b = b;
        m_c = c;
}

int Cube::getV(){
        m_v = m_a*m_b*m_c;
        return m_v;
}

int Cube::getS(){
        m_s = (m_a*m_b + m_a*m_c +m_b*m_c)*2;
        return m_s;
}

bool Cube::judgeCube(Cube &c){
        if(m_a == c.getA() && m_b == c.getB() && m_c == c.getC()){
                return true;
        }
        return false;
}